// 引入ajax
import services from '../../services/services.js'

class demo {
  // 小程序登陆授权
  login(data, isLoading = false) {
    return services.ajax({
      url: '/weapp/wechatAppLogin',
      // url: '/v1/user/wechatAppLogin',
      // url: 'https://m.viiart.cn/v1/user/wechatAppLogin',
      data: data,
      method: 'POST',
      isLoading
    })
  }
   // 小程序登陆授权
  logs(data, isLoading = false) {
    return services.ajax({
      url: '/weapp/logs',
      // url: 'https://m.viiart.cn/v1/user/wechatAppLogin',
      data: data,
      method: 'POST',
      isLoading
    })
  }
}

module.exports = new demo()